package icu.thatyear.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品评论
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Getter
@Setter
@TableName("tz_prod_comm")
@Schema(name = "TzProdComm", description = "商品评论")
public class TzProdComm implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @TableId(value = "prod_comm_id", type = IdType.AUTO)
    private Long prodCommId;

    @Schema(description = "商品ID")
    @TableField("prod_id")
    private Long prodId;

    @Schema(description = "订单项ID")
    @TableField("order_item_id")
    private Long orderItemId;

    @Schema(description = "评论用户ID")
    @TableField("user_id")
    private String userId;

    @Schema(description = "评论内容")
    @TableField("content")
    private String content;

    @Schema(description = "掌柜回复")
    @TableField("reply_content")
    private String replyContent;

    @Schema(description = "记录时间")
    @TableField("rec_time")
    private LocalDateTime recTime;

    @Schema(description = "回复时间")
    @TableField("reply_time")
    private LocalDateTime replyTime;

    @Schema(description = "是否回复 0:未回复  1:已回复")
    @TableField("reply_sts")
    private Integer replySts;

    @Schema(description = "IP来源")
    @TableField("postip")
    private String postip;

    @Schema(description = "得分，0-5分")
    @TableField("score")
    private Byte score;

    @Schema(description = "有用的计数")
    @TableField("useful_counts")
    private Integer usefulCounts;

    @Schema(description = "晒图的json字符串")
    @TableField("pics")
    private String pics;

    @Schema(description = "是否匿名(1:是  0:否)")
    @TableField("is_anonymous")
    private Integer isAnonymous;

    @Schema(description = "是否显示，1:为显示，0:待审核， -1：不通过审核，不显示。 如果需要审核评论，则是0,，否则1")
    @TableField("status")
    private Integer status;

    @Schema(description = "评价(0好评 1中评 2差评)")
    @TableField("evaluate")
    private Byte evaluate;
}
